package com.jdk.base.object;

import java.util.Objects;

/**
 * ClassName: JavaObject
 * Description:
 * Date: 2022/5/30 22:11 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class JavaObject{

    /**
     * 属性（成员变量）
     */
    private String name;


    public JavaObject() {
    }

    public void add() {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JavaObject that = (JavaObject) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }


}
